package com.syyai.spring.boot.starter.demo.urule;

import com.bstek.urule.console.Principal;
/**
 * 
 * @author yongjie0203@126.com
 *
 */
public class User implements Principal {
	
	private String loginName;
	
	private String mobile;
	
	private String email;
	
	private String passWord;
	
	private Long userId;
	
	private String realName;
	
	private String company;
	
	private Boolean isAdmin;
	
	private Role role;
	

	@Override
	public String getCompanyId() {
		// TODO Auto-generated method stub
		return company;
	}

	@Override
	public String getDisplayName() {
		// TODO Auto-generated method stub
		return realName;
	}

	@Override
	public String getName() {
		// TODO Auto-generated method stub
		return loginName;
	}

	@Override
	public boolean isAdmin() {
		// TODO Auto-generated method stub
		return isAdmin;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public Boolean getIsAdmin() {
		return isAdmin;
	}

	public void setIsAdmin(Boolean isAdmin) {
		this.isAdmin = isAdmin;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

}
